import HttpHandler from "@/handler/HttpHandler";

export default class Work {
  constructor() {
    this.http = new HttpHandler();
  }
  queryListPage(data){
    const url="/tie-demo/work/queryListPage";
    return this.http.get(url,data);
  }

  add(data) {
    const url="/tie-demo/work/add";
    return this.http.post(url,data);
  }
  batchDelete(data){
    const url="/tie-demo/work/batchDelete";
    return this.http.post(url,data);
  }
 findByOne(data){
    const url='/tie-demo/work/findByOne';
    return this.http.get(url,data);
 }
 delete(data){
    const url='/tie-demo/work/delete';
    return this.http.post(url,data);
 }

  update(data) {
    const url='/tie-demo/work/update';
    return this.http.post(url,data);
  }

  batchEdit(data) {
    const url='/tie-demo/work/batchEdit';
    return this.http.post(url,data);
  }
}
